{% extends "layout.html" %}

{% block css_m %}
    <style>
        td {
            text-align: center;
        }

        th {
            text-align: center;
        }
    </style>
{% endblock %}
{% block js_m %}
{% endblock %}

{% block content_body %}
    <div class="page-jumbotron center-block" style="width: 1200px;margin-top: 80px">
        <h1>{{ customer_obj.name }} <small>回访列表</small> <a class="btn btn-primary"
                                                           href="/returning_visits/{{ pid }}/add.html/"> 新增回访 </a></h1>


        <table class="table table-striped table-hover" style="width: 1200px">
            <tr style="text-align: center">


                <th>回访编号</th>
                <th>回访时间</th>
                <th>客户反馈</th>
                <th>回访总结</th>
                <th>操作</th>
            </tr>

            {% for each in rv_list %}
                <tr style="text-align: center">
                    <td>{{ each.rid }}</td>

                    <td>{{ each.create_time }}</td>
                    {% if each.feedback|length >= 10 %}
                        <td>{{ each.feedback|striptags|slice:10|add:"..." }}</td>
                        <td>{{ each.summary|striptags|slice:10|add:"..." }}</td>
                    {% else %}
                        <td>{{ each.feedback }}</td>
                        <td>{{ each.summary }}</td>
                    {% endif %}
                    <td><a href="/returning_visits/{{ each.rid }}/edit.html/">查看/修改</a></td>
                </tr>
            {% endfor %}


        </table>


    </div>



{% endblock %}

{% block content_bottom %}{% endblock %}